package site.zhouinfo.aop;

import java.lang.reflect.Proxy;

/**
 * @author zhou
 * @create 2017-08-29 17:21
 * @email zhouinfo@qq.com
 * @blog blog.zhouinfo.site
 */
public class Main {

    public static void main(String[] args) {
        Logz logz = new Logz();
        logz.logger("zhouinfo");

        Logger o = (Logger) Proxy.newProxyInstance(
                Logz.class.getClassLoader(),
                new Class[]{Logger.class},
                new MyLogger(logz));

        o.logger("zhou");
    }
}
